﻿namespace CGF
{
    public class RootComponent : ComponentBase, IAwake, IDestroy
    {
        public static RootComponent instance { get; private set; }
        public void Awake()
        {
            instance = this;
            AddComponent<UIManagerComponent>();
        }

        public void OnDestroy()
        {
            instance = null;
        }
    }
}
